Skip to content

chore(deps): Update ureq requirement from 2 to 3 - #5

Merged
mdoering merged 1 commit into
mainfrom
dependabot/cargo/ureq-3
Jul 21, 2026
Merged

mdoering merged 1 commit into
mainfrom
dependabot/cargo/ureq-3

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 14, 2026 •

Copy link
Copy Markdown
Contributor

Updates the requirements on ureq to permit the latest version.

Changelog

Sourced from ureq's changelog.

3.3.0

  • Bump MSRV 1.71 -> 1.85, edition 2024 #1167

3.2.1

  • Switch archived utf-8 crate for utf8-zero #1163

3.2.0

  • Strip Content-Encoding/Content-Length headers after decompression #1156
  • Timeout per resolved ip for try_connect #1152
  • Fix body header bug on redirect #1140
  • ureq-proto 0.5.3 to fix unsolicited 100-continue #1139
  • Make socks5:// locally resolve before calling proxy #1138
  • Add socks5h:// which DOESN'T locally resolve before calling proxy #1138

3.1.4

  • Set content-type with new Multipart form #1133

3.1.3

  • Fix short read with multi-byte charset #1131
  • Replace rustls-pemfile usage with rustls-pki-types #1122
  • Support for env NO_PROXY and proxy config #1118
  • Experimental multi-part form support #1102

3.1.2

  • Fix bug when query is after host "example.com?query" #1115

3.1.1

  • Fix regression in MSRV (hold back native-tls) #1113
  • Fix edge case regression when setting request header Content-Length: 0 #1109

3.1.0

DECISION: webpki-roots and webpki-root-certs goes from pre-release (0.26) to stable release (1.0.0). This is potentially a big change for ureq users. We release this as semver minor.

  • Bump all deps to latest #1104
  • Fixes to CONNECT to follow spec #1103
  • Send Content-Length for File #1100
  • native-tls transport capture and surface underlying errors #1093
  • Bump webpki-roots/webpki-root-certs to 1.0.0 #1089
  • Bump rustls-platform-verifier to 0.6.0 #1089
  • Allow the license CDLA-Permissive-2.0 #1089

... (truncated)

Commits
  • b2adbf0 3.3.0
  • 7662219 Bump MSRV 1.71 -> 1.85, edition 2024
  • eb51f2c 3.2.1
  • ad49981 Bump deps to fix cargo-deny RUSTSEC
  • 08785cb Switch out utf-8 crate with utf8-zero
  • 9ef2153 Clarify that json feature is disabled by default
  • eb2539d Fix misleading unsafe wording in crate docs
  • b45d3d2 Fix cargo-deny advisory failures
  • 852b804 3.2.0
  • 378f768 Update deny.toml given current dependencies
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file rust Pull requests that update rust code labels Jul 14, 2026
@dependabot dependabot Bot changed the title Update ureq requirement from 2 to 3 chore(deps): Update ureq requirement from 2 to 3 Jul 21, 2026
@dependabot
dependabot Bot force-pushed the dependabot/cargo/ureq-3 branch from 57c6488 to fd9d283 Compare July 21, 2026 07:36
ureq 3 reshaped the request/response API: `AgentBuilder` became
`Agent::config_builder()` (+ `Agent::new_with_config`), `.set()` became
`.header()`, `.send_string()` became `.send()`, and the response body now
comes from `.into_body().read_to_string()`.

The consequential change is error handling. ureq 3 reports 4xx/5xx as
`Error::StatusCode(u16)`, which carries only the code — porting it
literally would have silently dropped both the API error body and the
`retry-after` header that drives Anthropic's backoff. Both agents
therefore set `http_status_as_error(false)` and dispatch on status
explicitly. `retry_decision` already returns `None` for anything that
isn't 429/5xx, so a non-200 below 400 keeps its old non-retryable
behaviour and every user-facing error message is unchanged.

The transport had no automated coverage, which is why the regression
above would not have been caught. Add two tests that drive a real
loopback socket: one pinning the request line, headers and JSON body on
a 200, one asserting a 404 still surfaces its response body — the latter
fails if `http_status_as_error` is left at its default.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mdoering
mdoering force-pushed the dependabot/cargo/ureq-3 branch from fd9d283 to 677262c Compare July 21, 2026 07:53
@mdoering
mdoering merged commit 81ebbba into main Jul 21, 2026
8 checks passed
@dependabot
dependabot Bot deleted the dependabot/cargo/ureq-3 branch July 21, 2026 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file rust Pull requests that update rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant